using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Calendar_Notice - 日常安排通知列表 - 对象继承类
    /// </summary>
    [MetadataType(typeof(CalendarNoticeValidaTion))]
    public class CalendarNotice : ICalendarNotice<CalendarNotice>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class CalendarNoticeValidaTion
       {

     

        /// <summary>
        /// 日常安排通知列表
        /// </summary>
        [Display(Name ="日常安排通知列表")]
        [Required]
        [StringLength(36)]
        public String NoticeId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 日常安排ID
        /// </summary>
        [Display(Name ="日常安排ID")]
        [Required]
        [StringLength(36)]
        public String DayId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 通知类型
        /// </summary>
        [Display(Name ="通知类型")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.CalendarNotice.Type Type
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 通知提前时间
        /// </summary>
        [Display(Name ="通知提前时间")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Advance
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
